package com.zmn.oms.zmn.business.interfaces.chan;

import com.zmn.oms.common.exception.chan.ChannelFacadeException;
import com.zmn.oms.model.entity.chan.FacadeMessage;

import java.util.List;

/**
 * 类描述：
 *
 * @author lhl
 * @date 2020/12/29 22:01
 */
public interface FacadeMessageBService {

    /**
     * 保存渠道门户消息
     * @param facadeMessage
     * @throws ChannelFacadeException 保存失败时，抛出此异常
     */
    void save(FacadeMessage facadeMessage) throws ChannelFacadeException;

    List<FacadeMessage> listByClueId(long clueId);

    /**
     * 通过线索ID和消息编号查找对应的消息
     * @param clueId
     * @param msgNo
     * @return
     */
    FacadeMessage findByClueIdAndMsgNo(long clueId, int msgNo);

}
